We are attempting to find information about the flow of calcium. We will outline the method being used (for now) below. Following the outline I will examine it with simple test cases. I will use a simple 3D gaussian function to represent calcium concentrations. By shifting the guassian around to different locations we can simulate the notion of calcium movement within successive frames. We will take this foundation and construct different scenarios to explore the limits of the method. For example we will look at both wave like and diffusion like processes
If we can detect or approximate the "flow" i.e. which direction the gaussian moved to in these cases, then I will move on to more complicated test cases such as adding noise and multiple gaussians, etc.
We will approximate the flow within 5 frames at a time: $F_1,F_2,F_3,F_4,F_5$. The steps are enumerated below.
First we take a Gaussian and translate is over 5 frames a small distance. Such a Gaussian and its movement is shown below.
We see the 5 2D plots below
Average of $F_1,F_2,F_3$
Average of $F_3,F_4,F_5$
This concludes the general algorithm used to procure the gradient vector field. It is my contention so far, that provided the input data meets certain criteria this vector field will have embedded in it, flow information.
This is the part I am currently working on. I have a few ideas on this which I am trying out.
Longest Vector - My first idea is to only look at the longest vectors. This is because the orientation of a gradient vector is always pointing in the direction of steepest ascent, and provided the calcium dynamics are "slow enough" when the pseudo-gaussian moves the difference will always look like the temporal derivative above and the direction of steepest ascent is always in the direction of motion.
Taking the above gradient field and using this technique we were able to succesfully extract the flow information in this simple example...
Finally, I can average these "longest" vectors to get a good approximation of the flow in the region.
To improve this, I want to exploit some of our knowledge about the spatial dynamics of calcium. For example, if we get an increase in calcium intensity in one location and we were to circumscribe it with a circle (still assuming it is gaussian) what would be the radius of that circle? If we know this, I believe I can more reliably extract the flow information as follows...
Average of $F_3,F_4,F_5$
Average of $F_3,F_4,F_5$